package com.swf.common.utils;

import java.io.Closeable;
import java.io.IOException;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public final class FwsStreamUtils {
	private static Logger logger = LoggerFactory.getLogger(FwsStreamUtils.class);
	/**
	 * 禁用默认构造器	
	 */
	private FwsStreamUtils() {
	}
	public static void closeStream(Closeable stream){
		if (stream instanceof Closeable && stream != null){
			try {
				stream.close();
			} catch (IOException e) {
				logger.error("关闭流出错："+e.getMessage());
			}
		}
	}
}
